    <style>
    body{
        background-color: #FFFFFF;
    }
    </style>
    <div class="container top">
        <div class="well">
            <?php 
                $attr = array('class' => 'form-horizontal','role' => 'form');
                echo form_open('login',$attr);
            ?>
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">用户名</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control border" name="username" autocomplete="off" value="<?php echo set_value('username'); ?>" onpaste="return false" oncontextmenu="return false" required="true" maxlength="12" placeholder="用户名" autofocus="true">
                        <?php echo form_error('username'); ?>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-offset-2 col-sm-2 control-label">密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control border" name="password" autocomplete="off" placeholder="密码" onpaste="return false" oncontextmenu="return false" required="true">
                        <?php echo form_error('password'); ?>
                    </div>
                </div> 
                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-2">
                        <button class="btn btn-success border" type="submit">登 录</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>